﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Employee.Master" AutoEventWireup="true" CodeBehind="EditProduct.aspx.cs" Inherits="EnglishAuction.EditProduct" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    Duyệt sản phẩm
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script src="script/autoNumeric.js"></script>
    <script>
        $(function () {
            $("#tabs").tabs();
            $("#ContentPlaceHolder1_txtGiaThiTruong").autoNumeric({ aSep: ',' });
        });
        $(document).ready(function () {
            $("#ContentPlaceHolder1_txtNgayLenSan").datetimepicker({
                controlType: 'select',
                timeFormat: 'hh:mm TT',
            });
        });
    </script>
    <form id="Form1" runat="server" enctype="multipart/form-data">
        <br />
        <div style="border: solid 1px; background-color: #FFF; border-radius: 5px; border-color: #CCCCCC; width: 100%;">
            <div style="font-size: 20px; padding: 10px;">
                Duyệt sản phẩm
            </div>
            <hr style="border-style: inset; border-width: 1px; width: 98%;" />
            <table cellspacing="6" cellpadding="7" border="1" width="100%" align="center"
                style="border-collapse: collapse; width: 95%;" bordercolor="#CCCCCC">
                <tr>
                    <td class="td" style="width: 20%;">Tên Sản Phẩm:
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbTenSanPham" Font-Bold="true"></asp:Label>

                    </td>
                </tr>
                <tr>
                    <td class="td">Giá Sàn:
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lbGiaSan" Font-Bold="true"></asp:Label> (VNĐ)
                    </td>
                </tr>
                <tr>
                    <td class="td">Thời Gian Đấu Giá:
                    </td>
                    <td>
                        <asp:Label ID="lbThoiGianDauGia" runat="server" Font-Bold="true" />
                        (ngày)
                    </td>
                </tr>

                <tr>
                    <td class="td">Ngày đăng:
                    </td>
                    <td>
                        <asp:Label ID="lbNgayDang" runat="server" Font-Bold="true" />
                        
                    </td>
                </tr>

                <tr>
                    <td class="td" style="padding-top: 5px; vertical-align: top;">Hình Ảnh Đại Diện:
                    </td>
                    <td>
                        <asp:Image ID="imgHinhDaiDien" runat="server" Width="200" Height="200" Style="margin: 10px; border: solid 1px #ccc;" />
                    </td>
                </tr>
                <tr>
                    <td class="td">Người đăng:
                    </td>
                    <td>
                        <asp:Label ID="lbNguoiDang" runat="server" Font-Bold="true" />
                    </td>
                </tr>
                <tr>
                    <td class="td">Loại Sản Phẩm:
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlLoaiSanPham" runat="server" CssClass="dropdown">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="td" colspan="2">
                        <div id="tabs">
                            <ul>
                                <li><a href="#tabs-1">Chi tiết sản phẩm</a></li>
                                <li><a href="#tabs-2">Xóa sản phẩm</a></li>
                                <li><a href="#tabs-3">Duyệt sản phẩm</a></li>
                            </ul>
                            <div id="tabs-1" style="text-align:left;">
                                <asp:Label ID="lbMoTaSanPham" runat="server" />
                            </div>
                            <div id="tabs-2" style="text-align:left;">
                                <b>Lý do xóa</b><br /><br />

                                <CKEditor:CKEditorControl ID="txtLyDoXoa" runat="server">
                                </CKEditor:CKEditorControl>

                                <br />

                                <asp:Button Text="Xóa sản phẩm"  Font-Names="Arial" CssClass="button primary" runat="server" OnClick="btnDeleteProduct_Click" ID="btnDeleteProduct" />

                            </div>
                            <div id="tabs-3" style="text-align:left;">
                                <table>
                                    <tr>
                                        <td>
                                            Giá thị trường:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtGiaThiTruong" runat="server" Font-Names="Arial" style="text-align:right; font-weight:bold;"/> (VNĐ)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Ngày lên sàn:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtNgayLenSan" runat="server" Font-Names="Arial" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            <asp:Button ID="btnDuyet" runat="server" Text="Duyệt" CssClass="button primary" Font-Names="Arial" OnClick="btnDuyet_Click"/>
                                        </td>
                                    </tr>
                                </table>
                                
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
            <br />
        </div>
        <br />
    </form>
</asp:Content>
